Repository navigation
madspace: chili for lepton beams - #533
Merged
Merged
Conversation
Chili reads x1 and x2 off the final state, which lepton beams do not leave free. For fixed beams PhaseSpaceMapping handed chili 3n - 4 random numbers where it takes 3n - 2, and the run crashed, with massless beams too. With a dressed-lepton density it skipped the split of the luminosity, so 1 - x was never set and the run crashed as well. ChiliMapping(fixed_beams=True) generates the first n - 2 momenta as chili does and the last two as the two-body decay of Q = P - sum p_i in the rest frame of Q, from 3n - 4 random numbers. The rapidity of a particle runs up to its largest energy, reached with the others at their least mass, so a heavy particle among the first n - 2 keeps all of its phase space. The inverse reads the rapidity off as sign(pz) log((E + |pz|) / mT), which keeps its precision far forward. PhaseSpaceMapping takes it for chili with fixed beams. With a dressed-lepton density the split samples s_hat, x1 and x2 as for the other modes, and chili builds the final state for fixed beams at sqrt(s_hat) in the partonic frame, without the rapidity bounds of the cuts, which hold in the lab. In both cases the mapping builds the beams itself, on their mass shells if they are massive. The first n - 1 momenta of hadronic chili move into chili_head_forward and chili_head_inverse with the same operations, and its output is bitwise the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Ud6YhkZXK3uDs1Z3nwdTi1
Contributor
How CI reacts to this PR
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two commits on top of the review state.
CI fix: empty ETmin ranges of the massive kernels stay empty
The macOS wheel build failed
test_massive_kernels_have_the_massless_limitandtest_double_t_kernels_have_the_massless_limitin its scalar mode, for 4 of 20000 and 15 of 50000 events. The SIMD mode on macOS and both modes on Linux passed.Where the ETmin floors leave no recoil, the massless kernels get a cut range of zero width and fall back to the kinematic one.
The scalar build on arm64 fuses multiply-adds, which leaves the mass² of a massless beam a rounding error of either sign.
A positive one gave the massive cut range a width of that size, so it kept a sliver far from the massless range.
These events have zero weight either way, so no cross section changed.
t_cut_bounds_etmin_massiveanddoublet_t1_etmin_clamp_massivenow keep an empty cut range empty.Both tests also run with beams whose components carry a relative error of 4e-16, which fails the same way on x86 without the fix.
Massless beams are bitwise unchanged. With a massive beam only events of zero weight move.
Chili for lepton beams
This replaces the "fixed separately" in the description.
Chili reads x1 and x2 off its final state, which lepton beams do not leave free, and it crashed for any lepton-beam process with a t-channel, massless beams included.
With fixed beams it got 3n − 4 random numbers where it takes 3n − 2. With a dressed-lepton density (
beam.lepton_density) the split of the luminosity was skipped and 1 − x never set.ChiliMapping(fixed_beams=True)generates the first n − 2 momenta as chili does and the last two as the two-body decay of Q = P − Σ p_i in the rest frame of Q, from 3n − 4 random numbers.madspace/tests/test_chili_fixed_beams.py(65 tests) checks the momenta, the volume against rambo, the round trip, that the inverse takes every rambo event into the unit cube, the density over a cut region, and the dressed-lepton split.test_massive_incoming.pynow runs leptonic chili too.Cross sections at 100k events per run, chili against the propagator mapping, repeated runs combined.
isronlyll), 2 × 250 GeVisronlyll), 2 × 500 GeVThe eight pulls give χ² = 3.6 for 8 degrees of freedom.
The decay of the last pair is isotropic, so chili samples it less well than the propagator mapping when that pair has to pass cuts (690k points for 100k events of e+ e- > w+ w- against 590k).
The rest of the madspace suite fails the same tests as before.